package ptaTest7;

/*
 public synchronized void setBalance(int balance) {
 
	this.balance = balance;
}
public synchronized void deposit(int money){
	setBalance(getBalance()+money);
	notify();
}
public synchronized void withdraw(int money){
	while(getBalance()<=0){
		try {
			wait();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	setBalance(getBalance()-money);
	notify();
*/